//
// Created by Dinger on 2021/9/18.
//

#ifndef FUNDAMENTALS_OF_COMPILING_SYMBOL_FORM_H
#define FUNDAMENTALS_OF_COMPILING_SYMBOL_FORM_H
#include"stdafx.h"

using namespace std;

/*
 * 字符表
 */
class SymbolForm {
private:
    //字符名
    string _symbolName;
    //类型ID
    int _typeID;
    //值
    int _value;
public:
    SymbolForm();

    SymbolForm(string symbolName);

    SymbolForm(string symbolName, int typeID, int value);

    string getSymbolName() {
        return _symbolName;
    }

    int getTypeID() {
        return _typeID;
    }

    int getValue() {
        return _value;
    }

    void setSymbolName(string symbolName) {
        _symbolName = symbolName;
    }

    void setTypeID(int typeID) {
        _typeID = typeID;
    }

    void setValue(int value) {
        _value = value;
    }
};
#endif //FUNDAMENTALS_OF_COMPILING_SYMBOL_FORM_H
